#ifndef AUTHWORKER_H
#define AUTHWORKER_H

#include <QObject>
#include "databasehandler.h"

class AuthWorker : public QObject
{
    Q_OBJECT

public:
    explicit AuthWorker(DatabaseHandler* dbHandler, const QString& username, const QString& password, QObject *parent = nullptr);
    void processAuth();

signals:
    void authComplete(bool success);
    void authResult(bool success, QString fullName, QString role);

private:
    DatabaseHandler* m_dbHandler;
    QString m_username;
    QString m_password;
};
#endif